/***
 * formSize(String):表单大小 small mini large
 * type(String):表单类型 text | select | date | checkbox | radio
 * inputType(String):input类型
 * label(String):字段名称
 * labelWidth(String):字段宽度 150px
 * placeholder(String):默认显示
 * isReadOnly(Bollean):是否只读
 * isDisabled(Bollean):是否禁止
 * isRequired(Bollean):是否必填
 * optionList(Array):如果是下拉，复选，单选的数据源
 * keyName(String):有数据源的情况下，绑定的key字段名
 * valName(String):有数据源的情况下，绑定的label字段名
 * maxlength(Number):最大输入长度
 * colSpan(Number):占位符
 * isAppendRightBtn(Boolean):是否显示input右侧的按钮类型
 * appendRightBtnType(String):input右侧的按钮类型
 * appendRightBtnTxt(String):input右侧的按钮文字
 * bindFieldName(String):绑定后段字段名称
 * bindFieldVal(String):双向绑定绑定的具体值，一般用于readonly或者disabled的情况下直接赋值
 * buttonTxt(String):type为button时的按钮内容文字
 * influenceFiledName(String):二级联动所关联的select的后段字段->bindFieldName
 */

//预算配置
const budgetFiledList = [
  {
    type: 'text',
    inputType: "number",
    label: '编码',
    colSpan: 24,
    isRequired: true,
    bindFieldName: 'subjectCode',
    bindFieldVal: "",
    labelWidth: "150px",
  },
  {
    type: 'text',
    label: '科目名称',
    colSpan: 24,
    isRequired: true,
    bindFieldName: 'subjectName',
    bindFieldVal: "",
  },
  {
    type: 'text',
    label: '科目简称',
    colSpan: 24,
    isRequired: true,
    bindFieldName: 'subjectSimpleName',
    bindFieldVal: "",
  },
  {
    type: 'select',
    label: '是否为小计节点',
    colSpan: 24,
    isRequired: true,
    optionList: [
        {key:0,label:"否"},
        {key:1,label:"是"},
    ],
    keyName: 'key',
    valName: 'label',
    bindFieldName: 'subtotalNode',
    bindFieldVal: ""
  },
  {
    type: 'select',
    label: '科目类型',
    colSpan: 24,
    isRequired: false,
    optionList: [],
    keyName: 'key',
    valName: 'value',
    bindFieldName: 'subjectType',
    bindFieldVal: 1
  },
  {
    type: 'select',
    label: '增加/减少',
    colSpan: 24,
    isRequired: true,
    optionList: [
        {key:1,label:"+"},
        {key:0,label:"-"},
    ],
    keyName: 'key',
    valName: 'label',
    bindFieldName: 'calculateMethod',
    bindFieldVal: 1
  },
  {
    type: 'select',
    label: '科目列颜色',
    colSpan: 24,
    isRequired: false,
    optionList: [
        {key:'',label:"默认白色"},
        {key:'0',label:"蓝色"},
        {key:'1',label:"黄色"},
    ],
    keyName: 'key',
    valName: 'label',
    bindFieldName: 'menuColor',
    bindFieldVal: 1
  },
  {
    type: 'select',
    label: '值颜色',
    colSpan: 24,
    isRequired: false,
    optionList: [
        {key:'',label:"默认白色"},
        {key:'0',label:"蓝色"},
        {key:'1',label:"黄色"},
    ],
    keyName: 'key',
    valName: 'label',
    bindFieldName: 'cellColor',
    bindFieldVal: 1
  },
  {
    type: 'select',
    label: '是否新起一行',
    colSpan: 24,
    isRequired: false,
    optionList: [
        {key:'0',label:"否"},
        {key:'1',label:"是"},
    ],
    keyName: 'key',
    valName: 'label',
    bindFieldName: 'ifRowNew',
    bindFieldVal: 1
  },
  {
    type: 'text',
    inputType: 'textarea',
    label: '关联事项',
    colSpan: 24,
    isRequired: false,
    bindFieldName: 'chargeItemName',
    bindFieldVal: "",
    isReadOnly: true,
    placeholder: "点击文本框进行选择",
    isAppendRightBtn:true,
    appendRightBtnTxt:'选择',
  },
  //编辑时用，不展示
  {
    type: 'text',
    isHide: true,
    bindFieldName: 'parentId',
    bindFieldVal: "",
  },
  {
    type: 'text',
    isHide: true,
    bindFieldName: 'primaryKey',
    bindFieldVal: "",
  },
]

export {
    budgetFiledList,
}
